package com.fa.production.mapper;

import com.fa.production.domain.MdClient;
import com.fa.production.domain.Processs;
import com.fa.production.domain.Workorder;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface WorkorderMapper {

    List<Workorder> selectAll();

    List<Workorder> getlist(Workorder process);

    @Select("select * from pro_workorder where parent_id= #{workorderId}")
    List<Workorder> selectbyId(Integer workorderId);

    @Delete("delete from pro_workorder where workorder_id =#{workorderId} ")
    int deleteProcesssById(Integer workorderId);

    int insertWorkorder(Workorder workorder);

    @Select("select count(*) from sys_logininfor")
    int logTotal1();

    @Select("select count(*) from sys_oper_log")
    int logTotal2();


    List<MdClient> getMdItemList(MdClient mdClient);
}
